package tgc.edu.tms.service;

import java.sql.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import tgc.edu.tms.custom.CommonService;
import tgc.edu.tms.entity.Callnames;
import tgc.edu.tms.repository.CallnamesRepository;

@Service
public class CallnamesService extends CommonService<Callnames, Integer>{
	@Autowired
	private CallnamesRepository callnamesDAO;

	public List<String> findAllBanji() {
		return callnamesDAO.findAllBanji();
	}

	public List<Integer> findAllStudent(String banji1) {
		return callnamesDAO.findAllStudent(banji1);
	}

	public List<Object[]> findAttendance(String kc, String time,String overtime,Integer nameid) {
		return callnamesDAO.findAttendance(kc, time, overtime,nameid);
	}

	public List<Object[]> findAllSdcs(String kc, String time, String overtime, Integer student) {
		return callnamesDAO.findAllSdcs(kc,time,overtime,student);
	}

}
